package com.robot.mannge.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.robot.mannge.common.entity.BaseSuperAutoPkDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Smile
 * @Date: 2024/01/25/15:53
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu")
@TableComment("管理平台菜单（权限）表")
public class SysMenuDO extends BaseSuperAutoPkDO<SysMenuDO> {

    @Column(comment = "权限名称",defaultValue = "",length = 100)
    @IsNotNull
    private String priorityName;

    @Column(comment = "父权限id")
    private Integer parentId;

    @Column(comment = "父权限名称")
    private String parentName;

    @Column(comment = "权限编码")
    private String menuCode;

    @Column(comment = "路由地址")
    private String routePath;

    @Column(comment = "路由名称")
    private String routeName;

    @Column(comment = "路由授权地址")
    private String routeUrl;

    @Column(comment = "权限类型",type = MySqlTypeConstant.TINYINT)
    private int type;

    @Column(comment = "图标")
    private String icon;

    @Column(comment = "备注")
    private String remark;

    @Column(comment = "排序",type = MySqlTypeConstant.TINYINT)
    private int sort;

    @Column(comment = "是否删除，0-未删除  1-删除",type = MySqlTypeConstant.TINYINT)
    private boolean isDelete;




}
